package ica_alink

//文档： https://help.aliyun.com/zh/iot/user-guide/register-devices?spm=a2c4g.11186623.0.0.41fb436a8vRe7T

// RegisterDeviceAsk 设备注册
type RegisterDeviceAsk struct {
	BaseAsk
	Params []DeviceRegisterItem `json:"params"`
}

type DeviceRegisterItem struct {
	DeviceName string `json:"deviceName"`
	ProductKey string `json:"productKey"`
}

// RegisterDeviceReply 设备注册响应
type RegisterDeviceReply struct {
	BaseReply
	Data []DeviceRegisterReplyItem `json:"data"`
}

type DeviceRegisterReplyItem struct {
	IotId        string `json:"iotId"`
	ProductKey   string `json:"productKey"`
	DeviceName   string `json:"deviceName"`
	DeviceSecret string `json:"deviceSecret"`
}
